package o;

import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;

public class egq implements IServerCallBack {
    private b ॱ;

    public egq(b bVar) {
        this.ॱ = bVar;
    }

    public void ॱ() {
        this.ॱ = null;
    }

    public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
    }

    public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
        boolean z = true;
        int responseCode = responseBean != null ? responseBean.getResponseCode() : 1;
        if (!(responseBean != null && responseBean.getRtnCode_() == 0 && responseCode == 0)) {
            z = false;
        }
        int i = -1;
        if (o_cvu instanceof egb) {
            i = ((egb) o_cvu).getRecommendSwitch_();
        }
        if (this.ॱ != null) {
            this.ॱ.ˎ(i, z, responseCode);
        }
    }
}
